package com.example.Wisdompark.dao;

import com.example.Wisdompark.pojo.Current_Cargo;
import com.example.Wisdompark.pojo.Entry_Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface EntryOrderMapper {
    // 查询所有入库订单
    List<Entry_Order> queryAllOrder();

    // 插入一个订单
    int insertAOrder(Entry_Order entryorder);

    // 删除一个订单
    int delAOrder(@Param("order_num")String order_num);

    // 更新一个订单
    int updateAOrder(Entry_Order entryorder);

    // 更新状态
    int updateOrderState(@Param("order_num")String order_num,
                        @Param("state")int state);

    // 根据订单编号查询订单信息
    Entry_Order queryByOrderNum(@Param("order_num")String order_num);


    List<Entry_Order> queryLimitIN(int start,int amount);


    // 根据state状态查询货物
    List<Entry_Order> queryOrderByState(Integer state);

}
